<?php
/**
 * Bootstrap file
 * @version 1.0 
 */

// include functions
require_once APPLICATION_PATH . '/functions.php';

// Set up autoload.
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();

// Initiate session
Zend_Session::start();

// Optimizing plugin loader
$classFileIncCache = APPLICATION_CACHE_DIR .  '/pluginLoaderCache.php';
if (is_readable($classFileIncCache)) {
    include_once $classFileIncCache;
}
Zend_Loader_PluginLoader::setIncludeFileCache($classFileIncCache);

// Prepare the front controller. 
$frontController = Zend_Controller_Front::getInstance();

// Init
require_once APPLICATION_PATH . '/init.php';

// Dispatch the request using the front controller.
$frontController->dispatch();